<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html >
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/templates/admin.xhtml">
        <ui:define name="title">
            <h:outputText value="Activity detail"></h:outputText>
        </ui:define>
        <ui:define name="currentPage">Activity Detail</ui:define>
        <ui:define name="mainContent">
            <h:form id="formInformation">
                <table>
                    <tr>
                        <td>
                            <h:outputLabel value="Name" for="name" />
                        </td>
                        <td>
                            <h:inputText id="name" 
                                         value="#{activityDetailController.object.name}" 
                                         title="Name"
                                         required="true"
                                         requiredMessage="You must input activity name"/>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><h:message for="name" errorStyle="color: red"/></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <h:commandLink 
                                action="#{activityDetailController.execute()}" value="#{bundle.Save}" />
                        </td>
                    </tr>
                </table>
            </h:form>
        </ui:define>
    </ui:composition>
</html>
